#!/bin/sh

if [ -n "$1" ]
then
	echo "sh get params $1"
	line=$(df | grep -a $1)
	echo $line
	path=${line##* }
	echo $path
	cp log* -rf $path
	if [ $? -eq 0 ]
	then
		sync
		echo "sh cp log to disk $path success"
	else
		echo "sh cp log to disk $path failed"
		exit 1
	fi
else
    echo "sh get null params"
	exit 1
fi
